Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Enumerate  IIS  Class  Members  

 Content of Enumerate IIS Class Members.vbs
MD5 Hash: 8B80757E246B15826D28996E04E84C21
' Description: Returns all instances of the Web service, FTP service, NNTP service, and POP3 service classes on a server.


strComputer = "LocalHost"
Set objIIS = GetObject("IIS://" & strComputer & "/W3SVC")

For Each objItem in objIIS
If objItem.class = "IIsWebServer" Then
Wscript.Echo objItem.Name
End If
Next

Wscript.Echo

Set objIIS = GetObject("IIS://" & strComputer & "/MSFTPSVC")
For Each objItem in objIIS
If objItem.class = "IIsFtpServer" Then
Wscript.Echo objItem.Name
End If
Next

Wscript.Echo

Set objIIS = GetObject("IIS://" & strComputer & "/NNTPSVC")
For Each objItem in objIIS
If objItem.class = "IIsNntpServer" Then
Wscript.Echo objItem.Name
End If
Next

Wscript.Echo

Set objIIS = GetObject("IIS://" & strComputer & "/SMTPSVC")
For Each objItem in objIIS
If objItem.class = "IIsSmtpServer" Then
Wscript.Echo objItem.Name
End If
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a